<?php defined('SYSPATH') or die('No direct script access.');

class Task_Backup extends Minion_Task {
	/**
	 * Test action
	 *
	 * @param array $params
	 * @return void
	 */
	protected function _execute(array $params)
	{
		$path = DOCROOT.'dump';

		$file = DbBackup::factory($path)->mysqldump('book_config book_emailstack book_files book_items book_orders book_roles book_roles_users book_users book_user_tokens');
		 
		//Minion_CLI::write(Minion_CLI::color('DbDump'.$file,'green'));
	}
} // End Exchange

// 0 */8 * * * /usr/local/bin/php /home/admin/domains/lidocs.ru/public_html/a/index.php --task=Backup >/dev/null 2>&1